// 添加人员
export const IS_EXIT = {
  0: '未注册',
  1: '已注册'
}
export const COMPANY_TYPE = {
  FC: '原厂',
  AG: '经销商',
  HO: '医疗机构'
}
export const PARTNERSHIP = {
  provider: '供应商',
  customer: '客户'
}
export const addSubOrgColumns = [
  {type: 'selection'},
  {width: '60px', type: 'index', label: '序号'},
  {
    'min-width': '120px',
    prop: 'companyName',
    label: '渠道商名称',
    'show-overflow-tooltip': true
  },
  {
    prop: 'companyType',
    label: '渠道商类型',
    width: 120,
    formatter: row => COMPANY_TYPE[row.companyType]
  },
  {
    prop: 'partnership',
    label: '合作类型',
    width: 100,
    formatter: row => PARTNERSHIP[row.partnership]
  },
  {
    prop: 'isRegister',
    label: 'M平台状态',
    width: 100,
    formatter: row => IS_EXIT[row.isRegister]
  }
]
export const searchContent = [
  {
    key: 'companyName',
    title: '渠道商名称',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'companyType',
    title: '渠道商类型',
    type: 'select',
    attr: {
      placeholder: '请选择'
    },
    options: Object.keys(COMPANY_TYPE).map(item => {
      return {
        label: COMPANY_TYPE[item],
        value: item
      }
    })
  },
  {
    key: 'partnership',
    title: '合作类型',
    type: 'select',
    attr: {
      placeholder: '请选择'
    },
    options: Object.keys(PARTNERSHIP).map(item => {
      return {
        label: PARTNERSHIP[item],
        value: item
      }
    })
  }
]
